import UnitSpellEvent from '@/event/UnitSpellEvent';
import BaseUtil from '@/BaseUtil';
import UnitCommon from 'code/Core/Common/UnitCommon';
export default class Item_达贡之神力 {
    static id = 'AIfz';
    static 名称: string = '达贡之神力';
    static 描述: string = '';
    static 图标: string = '';
    static 添加技能(目标: unit) {
        UnitAddAbility(目标, Item_达贡之神力.id);
    }
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {
        BaseUtil.runLater(0.5, () => {
            let dmg = 450 + UnitCommon.getFullProperty(来源) * 4;
            DamageSystemInstance.applyDarkDamage(目标, 来源, dmg);
        });
    }
    constructor() {
        // BuffUtil.registerBuffType(Item_达贡之神力.buffType);
        se.onUnitSpellEffect(Item_达贡之神力.spellEffect, Item_达贡之神力.id);
    }
    static spellEffect(this: void, d: UnitSpellEvent) {
        Item_达贡之神力.释放(d.spellTargetX, d.spellTargetY, d.trigUnit, d.spellTargetUnit, d);
    }
}
